home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
prg_basi
/
n_b-v200.zip
/
NBV2
/
DMO
/
BOXBRDR.TXT
< prev
next >
Wrap
Text File
|
1996-03-11
|
3KB
|
44 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME BOX&BRDR.TXT ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
Boxes and borders are used extensively throughout the GUI world as they lend
themselves well to the mouse-driven environment. They can just sit there
like a lump or be made to light-up, click, move around, and a host of other
cute tricks that keeps the user's mind off what he/she is doing d;)
Anyhow, to get a box/border on the screen you need to send the top/left and
bottom right corners, some colors, and how wide you want the border to be.
Some of the borders have set widths and some even have set colors that they
work with but the one thing they all have in common is that they were built
with the DASoft color combinations in mind and that they all think that they
are working on a "reversed" screen where color 0 = white & color 15 = black.
This shouldn't pose too much of a problem as it has become the standard by
which the world works.
As events (windows) rule the GUI screens there is an extra set of border
routines that allow you to draw the borders by calling them with a single
element. Each of these have the same name as their counterpart but end in
an "A". ( eg: GBoxBevelA ) It's all explained in A_BEVEL.DMO so have a look
if you are using event arrays in your program.
Have a look at fLoadDAScolor$ to get an idea of how I lay-out colors to
create the illusion of 3-D using the VGA screen and it's 16 colors. You can
of course change the colors using the ready-made colors our even create your
own color combos.
d83)